package arrdome;

public class ArrayMaxValue {
    public static void main(String[] args) {
    int[] arr = {1,2,200,3,4};
/*        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);

        }*/
    int max = arr[0];

        for (int i = 1; i < arr.length; i++) {
            if (arr[i]>max){
                max = arr[i];
            }
        }
        System.out.println("数组的最大值为：" + max);

    }
}
